package com.ys.web.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@SuppressWarnings("serial")
@Entity
@Table(name = "customer_target", catalog = "ysanalyze")
public class CustomerTarget implements java.io.Serializable{
	private Integer id;
	
	/**所属行业id*/
	private String industryId;
	private String industryName;
	//公司信息
	private Integer companyId;
	private String companyName;
	
	//负责sem
	private Integer userId;
	private String userName;
	
	//日均咨询量
	private Double avgDayConsult;
	private Double avgDayConsultGoal;
	private String isConsultGoal;
	
	//日均转化
	private Double avgDayConversionCost;
	private Double avgDayConversionCostGoal;
	private String isConversionGoal;
	
	public CustomerTarget(){
		
	}
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name="industryId  ")
	public String getIndustryId() {
		return industryId;
	}
	
	public void setIndustryId(String industryId) {
		this.industryId = industryId;
	}
	
	@Column(name="industryName")
	public String getIndustryName() {
		return industryName;
	}
	public void setIndustryName(String industryName) {
		this.industryName = industryName;
	}
	
	@Column(name="companyId",nullable=false)
	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	@Column(name="companyName",nullable=false)
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Column(name="userId",nullable=false)
	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	@Column(name="userName")
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name="avgDayConsult")
	public Double getAvgDayConsult() {
		return avgDayConsult;
	}

	public void setAvgDayConsult(Double avgDayConsult) {
		this.avgDayConsult = avgDayConsult;
	}

	@Column(name="avgDayConsultGoal")
	public Double getAvgDayConsultGoal() {
		return avgDayConsultGoal;
	}

	public void setAvgDayConsultGoal(Double avgDayConsultGoal) {
		this.avgDayConsultGoal = avgDayConsultGoal;
	}

	@Column(name="isConsultGoal")
	public String getIsConsultGoal() {
		return isConsultGoal;
	}

	public void setIsConsultGoal(String isConsultGoal) {
		this.isConsultGoal = isConsultGoal;
	}

	@Column(name="avgDayConversionCost")
	public Double getAvgDayConversionCost() {
		return avgDayConversionCost;
	}

	public void setAvgDayConversionCost(Double avgDayConversionCost) {
		this.avgDayConversionCost = avgDayConversionCost;
	}

	@Column(name="avgDayConversionCostGoal")
	public Double getAvgDayConversionCostGoal() {
		return avgDayConversionCostGoal;
	}

	public void setAvgDayConversionCostGoal(Double avgDayConversionCostGoal) {
		this.avgDayConversionCostGoal = avgDayConversionCostGoal;
	}

	@Column(name="isConversionGoal")
	public String getIsConversionGoal() {
		return isConversionGoal;
	}

	public void setIsConversionGoal(String isConversionGoal) {
		this.isConversionGoal = isConversionGoal;
	}
	@Column(name="promotionDate")
	private String promotionDate;
	
	
	
	public String getPromotionDate() {
		return promotionDate;
	}

	public void setPromotionDate(String promotionDate) {
		this.promotionDate = promotionDate;
	}
	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "[id:"+id+" industryId:"+industryId+"  industryName:"+industryName+" companyId:"+companyId+
			 "  companyName:"+companyName+"  isConsultGoal:"+ isConsultGoal+"  isConversionGoal:"+isConversionGoal+"  promotionDate="+promotionDate+"]";
	}
}
